<?php

use App\Http\Controllers\Admin\Czy\TestCzyController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//include '../routes/gao/api.php';
//require '../routes/ly/api.php';
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
//用户登录注册
Route::post('userLogin',[\App\Http\Controllers\Api\Syj\Login\LoginController::class,'Login']);

//百度文本审核
Route::post('text',[\App\Http\Controllers\Api\Syj\ChatController::class,'test']);
//百度图片审核
Route::post('img',[\App\Http\Controllers\Api\Syj\ChatController::class,'img']);
//百度视频审核
Route::post('video',[\App\Http\Controllers\Api\Syj\ChatController::class,'video']);
//地址经纬度转换
Route::post('place',[\App\Http\Controllers\Api\Syj\FindHouse::class,'store']);

//房源分类
Route::get('houseType',[\App\Http\Controllers\Api\Syj\HomeType::class,'homeType']);

//门店新增
Route::post('addStore',[\App\Http\Controllers\Api\Syj\FindHouse::class,'add_house']);
//门店删除
Route::post('delStore',[\App\Http\Controllers\Api\Syj\FindHouse::class,'del_house']);
//门店修改
Route::post('upStore',[\App\Http\Controllers\Api\Syj\FindHouse::class,'up_house']);
//数据分页
Route::get('listStore',[\App\Http\Controllers\Api\Syj\FindHouse::class,'list_house']);



//查看房东直播间
Route::get('liveList',[\App\Http\Controllers\Admin\Syj\liveList::class,'findLive']);
//删除房东直播间


//直播播流地址
Route::get('move',[\App\Http\Controllers\Api\Syj\LiveController::class,'liveUrl']);
//直播推流地址
Route::get('live',[\App\Http\Controllers\Api\Syj\LiveController::class,'pushUrl']);


